//
//  HHMoneyFailCell.m
//  HHBroker
//
//  Created by He Wei on 10/19/15.
//  Copyright © 2015 harry. All rights reserved.
//

#import "HHMoneyFailCell.h"
#import "WMString-Utilities.h"

@implementation HHMoneyFailCell

- (void)awakeFromNib {
    self.separatorInset = UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, 0.0f);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(HHMoneyBaseModel *)model
{
    _model = model;
    [self changeLayout];
}

- (void)changeLayout
{
    self.typeLabel.text = _model.type_string;
    self.contractIDLabel.text = _model.contract_num;
    self.contrancMoneyLabel.text = _model.amt;
    self.dateLabel.text = [NSString time3Stamp:_model.happen_time];

}

+ (CGFloat)heightWithModel:(HHMoneyBaseModel *)model
{
    return 90;
}
@end
